package com.HomeWorkhsp.Chapter07;

/**
 * Enjoy programming!!!
 * Time: 2021/11/9 -  19:22
 */
public class Test03 {

    public static void main(String[] args) {
        int[] a = {3, 5, 4, 6, 56, 22};
        A03 A = new A03();
        for (int i = 0; i < a.length; i++) {
            System.out.print(A.copyArr(a)[i] + " ");
        }
    }
}

class A03 {
    public int[] copyArr(int[] a) {
        int[] a1 = new int[a.length];
        for (int i = 0; i < a.length; i++) {
            a1[i] = a[i];
        }
        return a1;
    }
}
